package net.yunzhanyi.common.web.domain;

/**
 * @author bestct
 * @date 2022/9/17
 */

public enum ResultStatus {

    /**
     * 未知错误
     */
    UNKNOWN_ERROR(500, "未知错误"),

    /**
     * 操作失败
     */
    FAIL(200, "操作失败"),

    /**
     * 成功
     */
    SUCCESS(200, "操作成功"),

    /**
     * 错误
     */
    ERROR(500, "服务器异常，请稍后重试");


    private int code;
    private String message;

    ResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }


    public void setCode(int code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

}
